package com.woniuxy.yuekeuser.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.yuekeuser.dao.HotolcarMapper;
import com.woniuxy.yuekeuser.model.Hotolcar;
import com.woniuxy.yuekeuser.model.HotolcarImage;
import com.woniuxy.yuekeuser.dao.HotolcarImageMapper;
import com.woniuxy.yuekeuser.service.IHotolcarImageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Freedom
 * @since 2020-11-03
 */
@Service
public class HotolcarImageServiceImpl extends ServiceImpl<HotolcarImageMapper, HotolcarImage> implements IHotolcarImageService {
    @Autowired
    private HotolcarImageMapper hotolcarImageMapper;
    @Override
    public List<HotolcarImage> queryHotolImageByHotolcarId(int hotolcarId) {
        return hotolcarImageMapper.queryHotolcarImageByHotolcarId(hotolcarId);
    }
    @Override
    public void addhotolcarpath(int hotoCarId, String hotolcarImagePath) {
        hotolcarImageMapper.addhotolcarpath(hotoCarId,hotolcarImagePath);
    }
}
